// const Base = require('./base.js');
const path = require('path');
var fs = require('fs');
var destroy = require('destroy')
var contentDisposition = require('content-disposition');

module.exports = class extends think.Controller {
    addStudentXlsTemplateAction() {
        const filePath = path.join(think.ROOT_PATH, 'tp_addStudentTemplate.xlsx');
        this.ctx.res.setHeader('Content-Type', 'application/octet-stream');
        this.ctx.res.setHeader('Content-Disposition', contentDisposition(filePath));
        this.ctx.download(filePath);
    }
};